#ifndef BSP_PORT_H
#define BSP_PORT_H

#ifdef __cplusplus
extern "C"
{
#endif
#include "public.h"
#include "gpio.h"
    extern CAN_HandleTypeDef hcan1;
    extern CAN_HandleTypeDef hcan2;

    extern SPI_HandleTypeDef hspi1;
    extern SPI_HandleTypeDef hspi3;

    extern TIM_HandleTypeDef htim9;

    // 铁电RAM port config
#define FRAM_FLASH_SPI &hspi1
#define FRAM_FLASH_CS GET_PIN(A, 4)

// TMC驱动器port config
#define TMC_SPI &hspi3



#define USING_STM4 1
#define USING_STM5 1
#define USING_STM6 1
#define USING_STM7 1
#define USING_STM8 1
#define USING_STM9 1

#define USING_STM1 1
#define USING_STM2 1
#define USING_STM3 1

#ifdef __cplusplus
}
#endif

#endif // BSP_PORT_H